package org.pidan.basic.designModel.builder;

/**
 * {@code @description}: 创建Builder实现类（这个类主要实现复杂对象创建的哪些部分需要什么属性）
 * 3
 * {@code @author}: huangyuxin
 * {@code @date}: 2023-11-16
 */
public class ArmsBuilder implements PersonBuilder {

    private Arms arms;

    //创建一个Arms实例,用于调用set方法
    public ArmsBuilder() {
        arms = new Arms();
    }

    @Override
    public void buildHelmetYanLong() {
        arms.setHelmet("炎龙头盔");
    }

    @Override
    public void buildArmorYanLong() {
        arms.setArmor("炎龙铠甲");
    }

    @Override
    public void buildWeaponYanLong() {
        arms.setWeapon("烈焰刀");
    }

    @Override
    public void buildHelmetFengYing() {
        arms.setHelmet("风鹰头盔");
    }

    @Override
    public void buildArmorFengYing() {
        arms.setArmor("风鹰铠甲");
    }

    @Override
    public void buildWeaponFengYing() {
        arms.setWeapon("风鹰剑");
    }

    @Override
    public Arms BuildArms() {
        return arms;
    }
}
